# -*- coding: utf-8 -*-
# @Time    : 2024/9/6 下午2:50
# @Author  : liujun
# @Email   : 2592730854@qq.com
# @File    : release_picture_page.py
# @Software: PyCharm

from appium.webdriver.common.appiumby import AppiumBy as By

class ReleasePicturePage:


    # 选择一张图片
    picture_locator=(By.XPATH,"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/androidx.recyclerview.widget.RecyclerView/android.widget.RelativeLayout[2]/android.widget.ImageView")

    #点击下一步
    step_next_locator=(By.ID,"com.xiachufang:id/tv_next_step")




    def __init__(self, driver):
        self.driver = driver

    def click_picture(self):  # 点击一张图片
        self.driver.find_element(*self.picture_locator).click()

    def click_step_next(self):   #点击下一步
        self.driver.find_element(*self.step_next_locator).click()